/********************************************************************************
 * @author 
 * File:   SolarMain.java
 * @date   
 * Asgn:   Solar
 ********************************************************************************/
package solar;

import solardraw.SolarDraw.*;
import jargs.gnu.CmdLineParser;

/**
 * Begin your simulation here.  Don't forget to make use of solardraw.SolarConstants,
 * as it contains many values to make your lives easier.
 */
public class SolarMain implements Control {

    // TODO: Your code here
    public double getTime() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    // TODO: Your code here
    public void saveCalled() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    /**
     * Start and initialize SolarMain
     * 
     * @param args - input and/or ouput file -- see below for details.
     */
    public static void main(String[] args) {

        CmdLineParser parser = new CmdLineParser();
        CmdLineParser.Option inputFlag = parser.addStringOption('i', "input");
        CmdLineParser.Option outputFlag = parser.addStringOption('o', "output");
        CmdLineParser.Option numPlanetsFlag = parser.addIntegerOption('p', "planets");
        CmdLineParser.Option numTimestepsFlag = parser.addIntegerOption('t', "timesteps");

        try {
            parser.parse(args);
        } catch (CmdLineParser.OptionException e) {
            System.err.println(e.getMessage());
        }

        String inputFile = (String) parser.getOptionValue(inputFlag);
        String outputFile = (String) parser.getOptionValue(outputFlag);
        int numPlanets = (Integer) parser.getOptionValue(numPlanetsFlag, 100);

        // set a default
        if (outputFile == null) {
            outputFile = "default.xml";
        
        //TODO: your code here
        }
    }
}
